package src.main.java.com.example.image.skew.correction.demo;

import org.opencv.core.Core;

/**
 * < >类功能说明</ >
 *
 * @version V1.0
 * @date 2025/1/1 15:05
 */
public class OpenCVConfig {
    static {
        // 加载native库
        try{
            System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
            System.out.println("OpenCV native 库加载成功!");
        }catch (UnsatisfiedLinkError e){
            System.err.println("无法加载OpenCV native 库，请检查配置!");
            e.printStackTrace();
        }
    }
    //初始化OpenCV
    public static void initOpenCV() {
        System.out.println("OpenCV 初始化完成!");
    }
}
